<?php
namespace qiuzhizhe\Controller;
use Common\Model\companyModel;
use Common\Model\jobhunterModel;
use Common\Model\jobhunterObject;
use Common\Model\deliveryModel;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        //实例化模型
        /* @var jobhunterModel $jobhunterModel */
        $jobhunterModel = D('jobhunter');
        $jobhunter = $jobhunterModel->fetch(2);
        var_dump($jobhunter->username);
        echo '<br />';
        /* @var companyModel $companyModel */
        $companyModel=D('company');
        $company=$companyModel->fetch(2);
        var_dump($company);
        echo '<br />';
       /* @var deliveryModel $deliveryModel */
        $deliveryModel=D('delivery');
        $delivery=$deliveryModel->fetch(1);
       var_dump($delivery);
        echo '<br />';
        /* @var recruitModel $recruitModel */
        $recruitModel=D('recruit');
        $recruit=$recruitModel->fetch(1);
        var_dump($recruit);
        echo '<br />';
       /* @var resumeModel $resumeModel */
        $resumeModel=D('resume');
        $resume=$resumeModel->fetch(1);
        var_dump($resume);
    }
}

